<%@ page language="java" import="java.util.*,orm.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'CTPWeekNetwork.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=request.getContextPath() %>/reference/images/Beike.css" rel="stylesheet" type="text/css">
	<style type="text/css">
	 div{
	 overflow:hidden;
	 width:130px;
	 height:15px;
	 }
	.gbz {
		background-attachment: scroll;
		background-image: url(<%=request.getContextPath() %>/reference/images/gbz.gif);
		background-repeat: no-repeat;
		background-position: center top;
	}
	</style>
	<style type="text/css">
		#1{
			position: absolute;
			left:339px;
			top:69px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#2{
			position:absolute;
			left:144px;
			top:167px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#3{
			position:absolute;
			left:537px;
			top:165px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#4{
			position:absolute;
			left:123px;
			top:289px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#5{
			position:absolute;
			left:553px;
			top:294px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#6{
			position:absolute;
			left:174px;
			top:412px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#7{
			position:absolute;
			left:502px;
			top:411px;
			border:0px;
			width:140px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
		#8{
			position:absolute;
			left:347px;
			top:265px;
			border:0px;
			width:120px;
			height:85px;
			overflow: hidden;
			text-align:center;
		}
	</style>
  </head>
  
  
  	<BODY>
  	<%
  		Map<Integer,List<String>> developmentDomainActivityMapping = 
  			(Map<Integer,List<String>>)request.getAttribute("developmentDomainActivityMapping");
  		IndividualTeachingPlanWeek itpwArr = (IndividualTeachingPlanWeek)request.getAttribute("ITPWArr");
  		String iWeekArrangeID = (String)request.getAttribute("iWeekArrangeID");
  	%>
		<form action="" method="post" enctype="multipart/form-data" name="form2" id="form2">
			
		  <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
		    <tr>
		      <td width="7"><img src="reference/images/table_1_01.gif" width="7" height="38"></td>
		      <td background="reference/images/table_1_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		          <tr>
		            <td width="30"><img src="reference/images/table_1_02.gif" width="30" height="38"></td>
		            <td width="200" background="reference/images/table_1_03.gif"><b>个 别 教 学 周 计 划 网 络</b></td>
		            <td width="59"><img src="reference/images/table_1_04.gif" width="59" height="38"></td>
		            <td>&nbsp;</td>
		          </tr>
		      </table></td>
		      <td width="7"><img src="reference/images/table_1_06.gif" width="8" height="38"></td>
		    </tr>
		    <tr>
		      <td width="7" background="reference/images/table_1_07.gif">&nbsp;</td>
		      <td bgcolor="#cfe5f5">
			  	<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#A0C8FA">
		          <tr>
		            <td height="465" align="center" valign="top" bgcolor="#FFFFFF" class="gbz">
						<div id="1">
					  		<table width="100%">
								<tr>
									<%
				                  		int intArea5 = 0;
				                  		if(developmentDomainActivityMapping.get(5) == null){
				                  			intArea5 = 0;
				                  		}else{
				                  			intArea5 = developmentDomainActivityMapping.get(5).size();
				                  		}
				                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">认识训练(<%=intArea5 %>)</font></td>
		                  		</tr>
								<%
	                    		List<String> area5 = developmentDomainActivityMapping.get(5);
		                    	if(area5!=null){
		                    		for(int i=0;i<(area5.size()>2?2:area5.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area5.get(i) %>"><%=i+1 %>、<%=area5.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}}
		                        %>
		                        <%if(intArea5 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(5,'认识训练')">更多</a>
									</td>
								</tr>
								<%} %>
							
							</table>
						</div>
						<div id="2">
							<table width="100%">
								<tr>
									<%
				                  		int intArea3 = 0;
				                  		if(developmentDomainActivityMapping.get(3) == null){
				                  			intArea3 = 0;
				                  		}else{
				                  			intArea3 = developmentDomainActivityMapping.get(3).size();
				                  		}
				                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">语言训练(<%=intArea3 %>)</font></td>
		                  		</tr>
								<%
	                    		List<String> area3 = developmentDomainActivityMapping.get(3);
	                            if(area3!=null){
	                            	for(int i=0;i<(area3.size()>2?2:area3.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area3.get(i) %>"><%=i+1 %>、<%=area3.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}}
		                        %>
		                        <%if(intArea3 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(3,'语言训练')">更多</a>
									</td>
								</tr>
								<%} %>
							
							</table>
						</div>
						<div id="3">
							<table width="100%">
								<tr>
									<%
				                  		int intArea4 = 0;
				                  		if(developmentDomainActivityMapping.get(4) == null){
				                  			intArea4 = 0;
				                  		}else{
				                  			intArea4 = developmentDomainActivityMapping.get(4).size();
				                  		}
				                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">交际训练(<%=intArea4 %>)</font></td>
		                  		</tr>
								<%
	                    		List<String> area4 = developmentDomainActivityMapping.get(4);
		                            if(area4!=null){
		                            	for(int i=0;i<(area4.size()>2?2:area4.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area4.get(i) %>"><%=i+1 %>、<%=area4.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}}
		                        %>
		                        <%if(intArea4 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(4,'交际训练')">更多</a>
									</td>
								</tr>
								<%} %>
							
							</table>
						</div>
						<div id="4">
							<table width="100%">
								<tr>
								<%
			                  		int intArea2 = 0;
			                  		if(developmentDomainActivityMapping.get(2) == null){
			                  			intArea2 = 0;
			                  		}else{
			                  			intArea2 = developmentDomainActivityMapping.get(2).size();
			                  		}
			                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">发音训练(<%=intArea2 %>)</font></td>
		                  		</tr>
								<%
		                    		List<String> area2 = developmentDomainActivityMapping.get(2);
		                            if(area2!=null){
		                            	for(int i=0;i<(area2.size()>2?2:area2.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area2.get(i) %>"><%=i+1 %>、<%=area2.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}}
		                        %>
		                        <%if(intArea2 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(2,'发音训练')">更多</a>
									</td>
								</tr>
								<%} %>
							
							</table>
						</div>
						<div id="5">
							<table width="100%">
								<tr>
								<%
			                  		int intArea6 = 0;
			                  		if(developmentDomainActivityMapping.get(6) == null){
			                  			intArea6 = 0;
			                  		}else{
			                  			intArea6 = developmentDomainActivityMapping.get(6).size();
			                  		}
			                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">言语矫治(<%=intArea6 %>)</font></td>
		                  		</tr>
								<%
		                    		List<String> area6 = developmentDomainActivityMapping.get(6);
		                            if(area6!=null){
		                            	for(int i=0;i<(area6.size()>2?2:area6.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area6.get(i) %>"><%=i+1 %>、<%=area6.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}
		                            }
		                        %>
		                        <%if(intArea6 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(6,'言语矫治')">更多</a>
									</td>
								</tr>
								<%} %>
							</table>
						</div>
						<div id="6">
							<table width="100%">
								<tr>
									<%
				                  		int intArea1 = 0;
				                  		if(developmentDomainActivityMapping.get(1) == null){
				                  			intArea1 = 0;
				                  		}else{
				                  			intArea1 = developmentDomainActivityMapping.get(1).size();
				                  		}
				                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">听觉训练(<%=intArea1 %>)</font></td>
		                  		</tr>
								<%
	                    		List<String> area1 = developmentDomainActivityMapping.get(1);
		                            if(area1!=null){
		                            	for(int i=0;i<(area1.size()>2?2:area1.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area1.get(i) %>"><%=i+1 %>、<%=area1.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}
		                            }
		                        %>
		                        <%if(intArea1 > 2){
		                        	
		                        %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(1,'听觉训练')">更多</a>
									</td>
								</tr>
								
								<%} %>
							</table>
						</div>
						<div id="7">
							<table width="100%">
								<tr>
								<%
			                  		int intArea7 = 0;
			                  		if(developmentDomainActivityMapping.get(7) == null){
			                  			intArea7 = 0;
			                  		}else{
			                  			intArea7 = developmentDomainActivityMapping.get(7).size();
			                  		}
			                  	%>
		                    		<td width="140" align="center" class="font_d"><font color="#FFFFFF">其他训练(<%=intArea7 %>)</font></td>
		                  		</tr>
								<%
		                    		List<String> area7 = developmentDomainActivityMapping.get(7);
		                            if(area7!=null){
		                            	for(int i=0;i<(area7.size()>2?2:area7.size());i++){
		                    	%>
		                        <tr>
		                          <td><div title="<%=i+1 %>、<%=area7.get(i) %>"><%=i+1 %>、<%=area7.get(i) %></div></td>
		                        </tr>
		                        <%
		                    		}
		                            }
		                        %>
		                        <%if(intArea7 > 2){ %>
								<tr>
									<td width="120" align="right" >
										<a href="javascript:void(0);" onclick="itMore(7,'其他训练')">更多</a>
									</td>
								</tr>
								<%} %>
							</table>
						</div>
						<div id="8">
							<table width="100%">
								 <tr>
		                    		<td height="60" align="center" valign="middle" class="font_d"><font color="#FFFFFF">第
		                    		<input value="<%=itpwArr.getExecutionWeek() %>" name="textfield25" type="text" class="bor_d2" id="textfield45" style="width:30px; height:19px;" maxlength="2">周<br>
		                      （<%=itpwArr.getWeekThemeName() %>）</font>
							  		</td>
		                  		</tr>
							</table>
						</div>
			  		</td>
		          </tr>
		
		      	</table>
			  </td>
		      <td width="7" background="reference/images/table_1_09.gif">&nbsp;</td>
		    </tr>
		    <tr>
		      <td background="reference/images/table_1_07.gif"><img src="reference/images/table_1_10.gif" width="7" height="22"></td>
		      <td background="reference/images/table_1_11.gif" bgcolor="#cfe5f5">&nbsp;</td>
		      <td background="reference/images/table_1_09.gif"><img src="reference/images/table_1_12.gif" width="8" height="22"></td>
		    </tr>
		  </table>
		</form>
  	</BODY></HTML>
  	<script type="text/javascript">
		function itMore(index,activityOptionName){
			
			var h = 600;
			var w = 400;
			var top = (window.screen.availHeight - h)/2;
			var left = (window.screen.availWidth - w)/2;
			var param = 'height='+h+',width='+w+',top='+top+',left='+left+',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no, status=no'
			var url = '<%=request.getContextPath() %>/TeachingPlanArrange/ITeachingPlanWeekInfoFunction?func=ITPWNetworkMore&IWeekArrangeID=<%=iWeekArrangeID%>&ActivityOptionSize='+index+'&ActivityOptionName='+activityOptionName;
			window.open(url,'newwindow',param);
		    
  		}
	</script>
